package com.thinqq.web.client.content.painter;

import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.thinqq.web.client.constants.CSSConstants;
import com.thinqq.web.client.content.handler.LinkClickHandler;

public class SitemapContentPainter implements IContentPainter {

	@Override
	public void updateConent(HorizontalPanel mainContent,
			VerticalPanel relatedContent) {
		
		mainContent.clear();
		VerticalPanel panel = new VerticalPanel();
		Anchor home = new Anchor("Home");
		home.addClickHandler(new LinkClickHandler(ContentPainterRegistry.getContentPainter(ContentPainterRegistry.HOME), mainContent, relatedContent));
		home.addStyleName(CSSConstants.UNORDERED_BULLET);
		panel.add(home);
		
		Anchor it = new Anchor("Information Technology Services");
		it.addClickHandler(new LinkClickHandler(ContentPainterRegistry.getContentPainter(ContentPainterRegistry.IT_CONTENT), mainContent, relatedContent));
		it.addStyleName(CSSConstants.UNORDERED_BULLET);
		panel.add(it);
		
		Anchor pd = new Anchor("Product Developemnt Services");
		pd.addClickHandler(new LinkClickHandler(ContentPainterRegistry.getContentPainter(ContentPainterRegistry.PD_CONTENT), mainContent, relatedContent));
		pd.addStyleName(CSSConstants.UNORDERED_BULLET);
		panel.add(pd);
		
		Anchor appDev = new Anchor("Information Technology Services >> Application Developemnt");
		appDev.addClickHandler(new LinkClickHandler(ContentPainterRegistry.getContentPainter(ContentPainterRegistry.PD_CONTENT), mainContent, relatedContent));
		appDev.addStyleName(CSSConstants.UNORDERED_BULLET);
		panel.add(appDev);
		
		mainContent.add(panel);

	}

}
